package com.itsv.news;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class Activity_04 extends Activity implements OnClickListener {
	
	private ProgressDialog pd;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_04);
        pd = new ProgressDialog(Activity_04.this);
		pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);
		ImageView back = (ImageView) findViewById(R.id.back);
		back.setOnClickListener(this);
		pd.show();
		new MyThread().start();
    }
    
    class MyThread extends Thread{

		@Override
			public void run(){
				try {
					sleep(200);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}finally{
					pd.dismiss();
				}
				super.run();
			}
			
		}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		finish();
	}

}
